<!-- 关于作者 -->
<?php
include './app-begin.php';
include __DIR__ . '/../Model/Config.php';
include __DIR__ . '/../Model/DB.php';
$fetch = new Fetch($config);
$data = $fetch->fetchGoodsById($_GET['goods_id']);
?>
<main class="body-data">
    <div class="panel_modify">
        <div class="panel_cancel_modify">返回</div>
        <form action="../Model/GoodsModify.php" method="post">
            <div class="all_form_modify">
                <input type="hidden" name="goods_id" value=<?php echo $data['goods_id'] ?>>
                <input type="text" name="goods_name" required placeholder="请输入商品名此项为必填项！" value=<?php echo
                                                                                                $data['goods_name'] ?>>
                <input type="text" name="goods_price" placeholder="请输入价格默认为0.01"
                    value=<?php echo $data['goods_price'] ?>>
                <input type="text" name="goods_total" placeholder="请输入数量默认为0" value=<?php echo $data['goods_total'] ?>>
                <input type="text" name="goods_status" placeholder="请输入商品状态默认为1"
                    value=<?php echo $data['goods_status'] ?>>
                <input type="text" name="goods_keywords " placeholder="请输入商品关键字此内容方便用户进行搜索"
                    value=<?php echo
                                                                                                    $data['goods_keywords'] ?>>
                <input type="text" name="goods_description" placeholder="请输入商品描述" value=<?php echo
                                                                                        $data['goods_description'] ?>>
                <input type="text" name="goods_add_time" required placeholder="请添加时间此项为必填项！"
                    value=<?php echo
                                                                                                    $data['goods_add_time'] ?>>
            </div>
            <div class="all_button_modify">
                <button class="panel_reset_modify" type="reset">重置</button>
                <button class="panel_submit_modify" type="submit">修改</button>
            </div>
        </form>
    </div>
</main>
<script src="../assets/js/goods.js"></script>
<?php
include './app-end.php';
?>